package com.tandashi.springbootstudy01.study.thread;

public class ThreadB extends Thread {
    private CrossPrint crossPrint;

    public ThreadB(CrossPrint crossPrint) {
        this.crossPrint = crossPrint;
    }

    @Override
    public void run() {
        super.run();
        crossPrint.printB();
    }
}
